package com.nulstudio.sppm.Utils;



import javax.servlet.http.HttpServletRequest;


public class RequestUtils {
    public static String getCurrentToken(HttpServletRequest request) {
        String token = request.getHeader("Authorization");
        if (token == null) {
            token = "";
        }
        if (token.startsWith("Bearer ")) {
            token = token.substring(7);
        }
        return token;
    }
}
